package solution;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-01-18
 * Time: 13:39
 */
public class Solution {
    public static void main(String[] args) {
        System.out.println(isPower(256));
    }
    public static boolean isPower(int n){
        while (n > 0 && n % 2 == 0) {
            n >>= 1;
        }
        return n == 1;
    }
}
